package com.Service.impl;

import com.Service.LoginService;
import com.dao.LoginMapper;
import com.entity.Login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    public int insert(Login login){
        int record = loginMapper.insert(login);
        return record;
    }

    public List<Login> query(Login login){
        List<Login> loginlist= loginMapper.selectAll();
        return loginlist;
    }

    public List<Login> check(Login login){
        List<Login> result= loginMapper.check(login);
        return result;
    }
}
